package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.AccountDao;
import com.oscarmovie.model.Account;

public class AccountServiceImpl implements AccountService{
	private AccountDao accountDao;

	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}

	public AccountDao getAccountDao() {
		return accountDao;
	}

	
	public void save(Account account) {
		accountDao.save(account);
	}

	
	public Account load(int id) {
		Account account =  accountDao.load(id);
		return account;
	}

	
	public List<Account> loadAll() {
		return accountDao.loadAll();
	}

	public Account loadByWeiboId(String weiboId) {
		return accountDao.loadByWeiboId(weiboId);
	}
}
